<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <video controls autoplay muted>
        <source src="./../video/myvideo.mp4" type="video/mp4">
        <source src="./../video/myvideo.ogg" type="video/ogg">
        您的浏览器不支持 video 标签。
    </video>

    <button id="voice">静音</button>

    <audio src=""></audio>

    <script>

        let voice = document.getElementById('voice');
        let v = document.getElementsByTagName('video')[0];
        voice.onclick = function () {
            v.muted = !v.muted;
            v.volume = 0.5;
            v.playbackRate = 4;
        }
    </script>



</body>

</html>